﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
	<title>客户列表</title>
	<style type="text/css">
		select { padding: 10px 2%; width: 100%; border: 1px solid #ddd; text-align: center; }
		#form { margin: 20px 2%; width: 96%; height: 150px; }
		textarea { width: 100%; height: 80%; resize: none; }
		button { padding: 5px 0; width: 100%; border: 0; background: #eeeeee; cursor: pointer; }
		th,td { padding: 5px 20px; }
		a { text-decoration: none; color: #0088CC; }
		.page { margin: 20px auto; width: 80vw; text-align: center; }
		#pop { display: none; }
		.popMask { width: 100vw; height: 100vh; background: #000; opacity: 0.5; position: fixed; top: 0; z-index: 10; }
		.popCnt { padding: 10px 0; width: 80vw; min-width: 300px; height: 50vh; background: #fff; overflow: auto; position: fixed; top: 25%; left: 10%; z-index: 10; }
		.close { padding: 10px 20px; background: red; color: #fff; cursor: pointer; position: fixed; top: 80%; left: 40%; z-index: 10; }
	</style>
</head>
<body>
	<!--<div id="form">-->
		<!--<textarea></textarea>-->
		<!--<button onclick="save();">客户导入</button>-->
	<!--</div>-->
	<!--<hr>-->
	<select onchange="index(this.value);"><option value="">-选择-</option></select>
	<div class="page">
		总记录 <b class="pageTotal">0</b>，
		页码 <b class="pageStart">0</b> / <b class="pageLimit">0</b>，
		<a href="javascript:;" onclick="prePage();">←</a>
		<a href="javascript:;" onclick="nextPage();">→</a>
	</div>
	<table>
		<thead>
		<tr>
			<!--<th>ID</th>-->
			<th>公司名称</th>
			<!--<th>公司法人</th>-->
			<th>联系方式</th>
			<th width="40">操作</th>
		</tr>
		</thead>
		<tbody></tbody>
	</table>
	<div class="page">
		总记录 <b class="pageTotal">0</b>，
		页码 <b class="pageStart">0</b> / <b class="pageLimit">0</b>，
		<a href="javascript:;" onclick="prePage();">←</a>
		<a href="javascript:;" onclick="nextPage();">→</a>
	</div>

	<span id="pop">
		<div class="popMask"></div>
		<div class="popCnt"></div>
		<div class="close" onclick="$('#pop').hide();">关闭</div>
	</span>
</body>
</html>


<script src="jquery.js"></script>
<script src="index.js"></script>
<script type="text/javascript">
	var page = 1, limit = 20, total = 0;
	var start = getParamByUrl('start');
	(function(){
		if (start) { page = start; }
		sel();
		index(0);
	})();
</script>